const obj={
    name:'test'
}

console.log(Object.assign({},obj))